package com.quxue.im.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author jinken
 * @since 2023-11-13
 */
@TableName("chat_group_info")
public class ChatGroupInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "info_id", type = IdType.AUTO)
    private Long infoId;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 群组id
     */
    private Long groupId;

    /**
     * 是否置顶
     */
    private String top;

    /**
     * 是否免打扰
     */
    private String disturb;

    /**
     * 是否保存群组
     */
    private String keepGroup;

    /**
     * 加入时间
     */
    private LocalDateTime createTime;

    public Long getInfoId() {
        return infoId;
    }

    public void setInfoId(Long infoId) {
        this.infoId = infoId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getGroupId() {
        return groupId;
    }

    public void setGroupId(Long groupId) {
        this.groupId = groupId;
    }

    public String getTop() {
        return top;
    }

    public void setTop(String top) {
        this.top = top;
    }

    public String getDisturb() {
        return disturb;
    }

    public void setDisturb(String disturb) {
        this.disturb = disturb;
    }

    public String getKeepGroup() {
        return keepGroup;
    }

    public void setKeepGroup(String keepGroup) {
        this.keepGroup = keepGroup;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "ChatGroupInfo{" +
            "infoId = " + infoId +
            ", userId = " + userId +
            ", groupId = " + groupId +
            ", top = " + top +
            ", disturb = " + disturb +
            ", keepGroup = " + keepGroup +
            ", createTime = " + createTime +
        "}";
    }
}
